package com.tbit.uqbike.push.service.impl;

import com.tbit.uqbike.push.dao.core.MachineDao;
import com.tbit.uqbike.push.pojo.Machine;
import com.tbit.uqbike.push.pojo.MachineBase;
import com.tbit.uqbike.push.service.MachineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("machineService")
public class MachineServiceImpl implements MachineService {
    @Autowired
    private MachineDao machineDao;

    @Override
    public Machine getByMachineNO(String machineNO) {
        return machineDao.getByMachineNO(machineNO);
    }

    @Override
    public List<MachineBase> getAllMachineBase() {
        return machineDao.getAllMachineBase();
    }

    @Override
    public MachineBase getByMachineId(Integer machineId) {
        return machineDao.getByMachineId(machineId);
    }

    @Override
    public List<MachineBase> getByJoinTime(String joinTime) {
        return machineDao.getByJoinTime(joinTime);
    }

}  